package com.github.iot.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

/**
 * TODO
 *
 * @Author: 梁声洪
 * @Date: 2019/12/23 21:04
 * @Version: v1.0.0
 */
@Entity
public class Door {

    /**
     * 主键ID
     */
    @Id(autoincrement = true)
    private Long id;

    /**
     * 展柜ID
     */
    @NotNull
    private Long showcaseId;

    /**
     * 类型名称(柜门、背板、灯箱)
     */
    @NotNull
    private String uuid;
    
    /**
     * 类型名称默认(柜门、背板、灯箱)
     */
    @NotNull
    private String typeName;

    /**
     * 类型(柜门、背板、灯箱)
     */
    @NotNull
    private String type;

    /**
     * 地址
     */
    @NotNull
    private Integer address;

    /**
     * 名称
     */
    @NotNull
    private String name;

    /**
     * 关闭按钮按下指令
     */
    private Integer downClose;

    /**
     * 关闭按钮松开指令
     */
    private Integer upClose;

    /**
     * 打开按钮按下指令
     */
    private Integer downOpen;

    /**
     * 打开按钮松开指令
     */
    private Integer upOpen;

    /**
     * 状态 -1 隐藏 1 启动
     */
    @NotNull
    private Integer status;

    /**
     * 排序 默认 0
     */
    @NotNull
    private Integer sort;

    @Generated(hash = 610283322)
    public Door(Long id, @NotNull Long showcaseId, @NotNull String uuid,
            @NotNull String typeName, @NotNull String type,
            @NotNull Integer address, @NotNull String name, Integer downClose,
            Integer upClose, Integer downOpen, Integer upOpen,
            @NotNull Integer status, @NotNull Integer sort) {
        this.id = id;
        this.showcaseId = showcaseId;
        this.uuid = uuid;
        this.typeName = typeName;
        this.type = type;
        this.address = address;
        this.name = name;
        this.downClose = downClose;
        this.upClose = upClose;
        this.downOpen = downOpen;
        this.upOpen = upOpen;
        this.status = status;
        this.sort = sort;
    }

    @Generated(hash = 1984739991)
    public Door() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShowcaseId() {
        return this.showcaseId;
    }

    public void setShowcaseId(Long showcaseId) {
        this.showcaseId = showcaseId;
    }

    public String getTypeName() {
        return this.typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDownClose() {
        return this.downClose;
    }

    public void setDownClose(Integer downClose) {
        this.downClose = downClose;
    }

    public Integer getUpClose() {
        return this.upClose;
    }

    public void setUpClose(Integer upClose) {
        this.upClose = upClose;
    }

    public Integer getDownOpen() {
        return this.downOpen;
    }

    public void setDownOpen(Integer downOpen) {
        this.downOpen = downOpen;
    }

    public Integer getUpOpen() {
        return this.upOpen;
    }

    public void setUpOpen(Integer upOpen) {
        this.upOpen = upOpen;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return this.sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getUuid() {
        return this.uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getAddress() {
        return this.address;
    }

    public void setAddress(Integer address) {
        this.address = address;
    }

}